/*
 * SpringCaptureCommand.cpp
 *
 *  Created on: Nov 20, 2008
 *      Author: Ryan
 */

#include "SpringCaptureCommand.h"

SpringCaptureCommand::SpringCaptureCommand( OOInterface::ConstUnitPtr target ) :
	OOInterface::CaptureCommand( target )
{
}

SpringCaptureCommand::~SpringCaptureCommand()
{
}

::Command* SpringCaptureCommand::getCommand() const
{
	OOInterface::ConstUnitPtr target = getCaptureTarget();

	::Command* cmd = new ::Command;
	cmd->id = CMD_CAPTURE;
	cmd->params.push_back( target->getID() );

	return cmd;
}
